home *** CD-ROM | disk | FTP | other *** search
- Path: keats.ugrad.cs.ubc.ca!not-for-mail
- From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
- Newsgroups: comp.lang.c
- Subject: Re: list of functions in a lib<>.a file
- Date: 19 Apr 1996 18:42:05 -0700
- Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
- Message-ID: <4l9fddINN8u3@keats.ugrad.cs.ubc.ca>
- References: <4l60fc$9am@ornews.intel.com> <smryanDq3M2y.5M8@netcom.com> <4l8o4j$kj@news.interpath.net>
- NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
-
- In article <4l8o4j$kj@news.interpath.net>,
- Scott McMahan - Softbase Systems <softbase@mercury.interpath.com> wrote:
- >@#$%!?! (smryan@netcom.com) wrote:
- >: : Is there a way that I can get a list of functions in a .a
- >: : library file?
- >
- >: nm if your system has it.
- >
- >Don't you mean ar? nm lists the symbols in a .o file, but I don't
- >think I've ever run it on an archive before. ar would be more
- >user friendly anyhow.
-
- It works. These archives are blessed with special capabilities (such as the
- symbol table that is added with ranlib, or ar s ).
-
- nm also works on executable files that have not been stripped.
-
- BTW, the proper place is in some system-specific newsgroup. The C language
- doesn't designate an object format, or a set of tools for manipulating it. It
- could be argued that those things in the object file are no longer C functions,
- even. They are object code tagged with symbols that have lost most of their
- original C semantics.
-